<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/deplacement.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/deplacement.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="constante_8h_source.html">constante.h</a>&quot;</code><br/>
</div>
<p><a href="deplacement_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#ab29f0855510a92ec6d71eca3fffc3f2d">copieTab2D</a> (char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], char tab2[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : copie tab dans tab2.  <a href="#ab29f0855510a92ec6d71eca3fffc3f2d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a74759ae4434c551591a87aecc9fa9daf">estDifferentTab2D</a> (char tab1[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], char tab2[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne 1 si tab1 différent de tab2, 0 sinon.  <a href="#a74759ae4434c551591a87aecc9fa9daf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a9a8ac44c929cb97e983ac1d93b3a6b8a">deplacerCaseColonne</a> (int y, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=y&lt;TAILLE_MAX_H <br/>
 Postconditions : vérifie l'accessibilité de la case y de tab : retourne 0 si inaccessible, 1 sinon.  <a href="#a9a8ac44c929cb97e983ac1d93b3a6b8a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a32acc42e9d14b990440b36ef81031ab1">deplacerCaseLigne</a> (int x, char tab[<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX_L <br/>
 Postconditions : vérifie l'accessibilité de la case x de tab : retourne 0 si inaccessible, 1 sinon.  <a href="#a32acc42e9d14b990440b36ef81031ab1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#afb7f6fa97a05c639350cd7d4891a2912">testRetourColonne</a> (int y, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=y&lt;TAILLE_MAX_H <br/>
 Postconditions : vérifie si le déplacement vers la case (x) de tab est un retour en arrière : retourne 0 si c'est le cas, 1 sinon.  <a href="#afb7f6fa97a05c639350cd7d4891a2912"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a6b9ac7a4a8b64aac310d0dda786775db">testRetourLigne</a> (int x, char tab[<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX_L <br/>
 Postconditions : vérifie si le déplacement vers la case (x) de tab est un retour en arrière : retourne 0 si c'est le cas, 1 sinon.  <a href="#a6b9ac7a4a8b64aac310d0dda786775db"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a0def3495d62789e36a0d254f57838212">getColonne</a> (int col, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], char *tamp)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=col&lt;TAILLE_MAX <br/>
 Postconditions : retourne la yième colonne de tab.  <a href="#a0def3495d62789e36a0d254f57838212"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#af11c361f5022b7e25957a7a69e435317">min</a> (char a, char b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne le minimum de a et b.  <a href="#af11c361f5022b7e25957a7a69e435317"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a219f44c888be90d6a484f4e231c92cef">max</a> (char a, char b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne le maximum de a et b.  <a href="#a219f44c888be90d6a484f4e231c92cef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a3e31d5019b581928ec4310a0cd465abc">afficherTab2D</a> (char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : affiche un tableau à 2 dimensions, ici tab.  <a href="#a3e31d5019b581928ec4310a0cd465abc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a166af685bbfa4653cd6b019bdc30681d">chercher2</a> (char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], int x, int y, char i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : retourne la case 2 ou 3 la plus proche de la case (x,y) de tab en tenant compte de la direction empruntée i.  <a href="#a166af685bbfa4653cd6b019bdc30681d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#ad09ce5178d9f3a194a9109a6fb02520e">tunnel</a> (int x, int y, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], int i)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : bloque les cases adjacentes à la case (x,y) de tab qui ne correspondent pas à la direction empruntée i.  <a href="#ad09ce5178d9f3a194a9109a6fb02520e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#aa29da95d423fa107da55482c4a74cdeb">reinitTunnel</a> (int x, int y, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : libère les cases adjacentes à la case (x,y) de tab.  <a href="#aa29da95d423fa107da55482c4a74cdeb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a30b9132afe4b97891cc1237ed491e7f3">quatreChemins</a> (char droite, char haut, char bas, char gauche)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne le minimum de droite, gauche, haut et bas. L'ordre des paramètres détermine les priorités en cas d'égalité. si l'un des paramètres est nul il n'est pas pris en compte.  <a href="#a30b9132afe4b97891cc1237ed491e7f3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a1310fd0e14a6c16e730b4bb85d1ff992">deplacementIA</a> (int x, int y, int z, int t, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;=z&lt;TAILLE_MAX, 0&lt;=t&lt;TAILLE_MAX <br/>
 Postconditions : rempli tab en faisant apparaitre un chemin pour aller de la case (x,y) à la case (z,t) et renvoie la distance parcourue.  <a href="#a1310fd0e14a6c16e730b4bb85d1ff992"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#a9f8f0b61d71e8253525c954687257673">chemin</a> (int x, int y, int z, int t, char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>])</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;=z&lt;TAILLE_MAX, 0&lt;=t&lt;TAILLE_MAX <br/>
 Postconditions : trace un chemin dans tab pour aller de la case (x,y) à la case (z,t).  <a href="#a9f8f0b61d71e8253525c954687257673"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#ac9cf0b5d5469adde44830a129b5f1a4c">seRapprocher</a> (char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], int *a, int *b, int nb, char *orientation)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=a&lt;TAILLE_MAX, 0&lt;=b&lt;TAILLE_MAX <br/>
 Postconditions : Rapproche un perso de sa destination de nb case(s) et retourne les coordonnées d'arrivée ainsi que l'orientation du perso.  <a href="#ac9cf0b5d5469adde44830a129b5f1a4c"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="deplacement_8h.html#aa180ef1e90aac8704883c1b29320ffc3">sEloigner</a> (char tab[<a class="el" href="constante_8h.html#ac1049bafa9c744bc36db5e3a0a6cf8ed">TAILLE_MAX_H</a>][<a class="el" href="constante_8h.html#aebaf3b6f2e7f670f39b91564011c9d20">TAILLE_MAX_L</a>], int *a, int *b, int nb, char *orientation)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : 0&lt;=a&lt;TAILLE_MAX, 0&lt;=b&lt;TAILLE_MAX <br/>
 Postconditions : Eloigne un perso de sa destination de nb case(s) et retourne les coordonnées d'arrivée ainsi que l'orientation du perso.  <a href="#aa180ef1e90aac8704883c1b29320ffc3"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a3e31d5019b581928ec4310a0cd465abc"></a><!-- doxytag: member="deplacement.h::afficherTab2D" ref="a3e31d5019b581928ec4310a0cd465abc" args="(char tab[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="deplacement_8h.html#a3e31d5019b581928ec4310a0cd465abc">afficherTab2D</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L]</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : affiche un tableau à 2 dimensions, ici tab. </p>

</div>
</div>
<a class="anchor" id="a9f8f0b61d71e8253525c954687257673"></a><!-- doxytag: member="deplacement.h::chemin" ref="a9f8f0b61d71e8253525c954687257673" args="(int x, int y, int z, int t, char tab[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a9f8f0b61d71e8253525c954687257673">chemin</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;=z&lt;TAILLE_MAX, 0&lt;=t&lt;TAILLE_MAX <br/>
 Postconditions : trace un chemin dans tab pour aller de la case (x,y) à la case (z,t). </p>

</div>
</div>
<a class="anchor" id="a166af685bbfa4653cd6b019bdc30681d"></a><!-- doxytag: member="deplacement.h::chercher2" ref="a166af685bbfa4653cd6b019bdc30681d" args="(char tab[TAILLE_MAX_H][TAILLE_MAX_L], int x, int y, char i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a166af685bbfa4653cd6b019bdc30681d">chercher2</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : retourne la case 2 ou 3 la plus proche de la case (x,y) de tab en tenant compte de la direction empruntée i. </p>

</div>
</div>
<a class="anchor" id="ab29f0855510a92ec6d71eca3fffc3f2d"></a><!-- doxytag: member="deplacement.h::copieTab2D" ref="ab29f0855510a92ec6d71eca3fffc3f2d" args="(char tab[TAILLE_MAX_H][TAILLE_MAX_L], char tab2[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="deplacement_8h.html#ab29f0855510a92ec6d71eca3fffc3f2d">copieTab2D</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab2</em>[TAILLE_MAX_H][TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : copie tab dans tab2. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a1310fd0e14a6c16e730b4bb85d1ff992"></a><!-- doxytag: member="deplacement.h::deplacementIA" ref="a1310fd0e14a6c16e730b4bb85d1ff992" args="(int x, int y, int z, int t, char tab[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a1310fd0e14a6c16e730b4bb85d1ff992">deplacementIA</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;=z&lt;TAILLE_MAX, 0&lt;=t&lt;TAILLE_MAX <br/>
 Postconditions : rempli tab en faisant apparaitre un chemin pour aller de la case (x,y) à la case (z,t) et renvoie la distance parcourue. </p>

</div>
</div>
<a class="anchor" id="a9a8ac44c929cb97e983ac1d93b3a6b8a"></a><!-- doxytag: member="deplacement.h::deplacerCaseColonne" ref="a9a8ac44c929cb97e983ac1d93b3a6b8a" args="(int y, char tab[TAILLE_MAX_H])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a9a8ac44c929cb97e983ac1d93b3a6b8a">deplacerCaseColonne</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=y&lt;TAILLE_MAX_H <br/>
 Postconditions : vérifie l'accessibilité de la case y de tab : retourne 0 si inaccessible, 1 sinon. </p>

</div>
</div>
<a class="anchor" id="a32acc42e9d14b990440b36ef81031ab1"></a><!-- doxytag: member="deplacement.h::deplacerCaseLigne" ref="a32acc42e9d14b990440b36ef81031ab1" args="(int x, char tab[TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a32acc42e9d14b990440b36ef81031ab1">deplacerCaseLigne</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX_L <br/>
 Postconditions : vérifie l'accessibilité de la case x de tab : retourne 0 si inaccessible, 1 sinon. </p>

</div>
</div>
<a class="anchor" id="a74759ae4434c551591a87aecc9fa9daf"></a><!-- doxytag: member="deplacement.h::estDifferentTab2D" ref="a74759ae4434c551591a87aecc9fa9daf" args="(char tab1[TAILLE_MAX_H][TAILLE_MAX_L], char tab2[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a74759ae4434c551591a87aecc9fa9daf">estDifferentTab2D</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab1</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab2</em>[TAILLE_MAX_H][TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne 1 si tab1 différent de tab2, 0 sinon. </p>

</div>
</div>
<a class="anchor" id="a0def3495d62789e36a0d254f57838212"></a><!-- doxytag: member="deplacement.h::getColonne" ref="a0def3495d62789e36a0d254f57838212" args="(int col, char tab[TAILLE_MAX_H][TAILLE_MAX_L], char *tamp)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="deplacement_8h.html#a0def3495d62789e36a0d254f57838212">getColonne</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>col</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>tamp</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=col&lt;TAILLE_MAX <br/>
 Postconditions : retourne la yième colonne de tab. </p>

</div>
</div>
<a class="anchor" id="a219f44c888be90d6a484f4e231c92cef"></a><!-- doxytag: member="deplacement.h::max" ref="a219f44c888be90d6a484f4e231c92cef" args="(char a, char b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a219f44c888be90d6a484f4e231c92cef">max</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne le maximum de a et b. </p>

</div>
</div>
<a class="anchor" id="af11c361f5022b7e25957a7a69e435317"></a><!-- doxytag: member="deplacement.h::min" ref="af11c361f5022b7e25957a7a69e435317" args="(char a, char b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#af11c361f5022b7e25957a7a69e435317">min</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne le minimum de a et b. </p>

</div>
</div>
<a class="anchor" id="a30b9132afe4b97891cc1237ed491e7f3"></a><!-- doxytag: member="deplacement.h::quatreChemins" ref="a30b9132afe4b97891cc1237ed491e7f3" args="(char droite, char haut, char bas, char gauche)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a30b9132afe4b97891cc1237ed491e7f3">quatreChemins</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>droite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>haut</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>bas</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>gauche</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne le minimum de droite, gauche, haut et bas. L'ordre des paramètres détermine les priorités en cas d'égalité. si l'un des paramètres est nul il n'est pas pris en compte. </p>

</div>
</div>
<a class="anchor" id="aa29da95d423fa107da55482c4a74cdeb"></a><!-- doxytag: member="deplacement.h::reinitTunnel" ref="aa29da95d423fa107da55482c4a74cdeb" args="(int x, int y, char tab[TAILLE_MAX_H][TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="deplacement_8h.html#aa29da95d423fa107da55482c4a74cdeb">reinitTunnel</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : libère les cases adjacentes à la case (x,y) de tab. </p>

</div>
</div>
<a class="anchor" id="aa180ef1e90aac8704883c1b29320ffc3"></a><!-- doxytag: member="deplacement.h::sEloigner" ref="aa180ef1e90aac8704883c1b29320ffc3" args="(char tab[TAILLE_MAX_H][TAILLE_MAX_L], int *a, int *b, int nb, char *orientation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="deplacement_8h.html#aa180ef1e90aac8704883c1b29320ffc3">sEloigner</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>orientation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=a&lt;TAILLE_MAX, 0&lt;=b&lt;TAILLE_MAX <br/>
 Postconditions : Eloigne un perso de sa destination de nb case(s) et retourne les coordonnées d'arrivée ainsi que l'orientation du perso. </p>

</div>
</div>
<a class="anchor" id="ac9cf0b5d5469adde44830a129b5f1a4c"></a><!-- doxytag: member="deplacement.h::seRapprocher" ref="ac9cf0b5d5469adde44830a129b5f1a4c" args="(char tab[TAILLE_MAX_H][TAILLE_MAX_L], int *a, int *b, int nb, char *orientation)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="deplacement_8h.html#ac9cf0b5d5469adde44830a129b5f1a4c">seRapprocher</a> </td>
          <td>(</td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>nb</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>orientation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=a&lt;TAILLE_MAX, 0&lt;=b&lt;TAILLE_MAX <br/>
 Postconditions : Rapproche un perso de sa destination de nb case(s) et retourne les coordonnées d'arrivée ainsi que l'orientation du perso. </p>

</div>
</div>
<a class="anchor" id="afb7f6fa97a05c639350cd7d4891a2912"></a><!-- doxytag: member="deplacement.h::testRetourColonne" ref="afb7f6fa97a05c639350cd7d4891a2912" args="(int y, char tab[TAILLE_MAX_H])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#afb7f6fa97a05c639350cd7d4891a2912">testRetourColonne</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=y&lt;TAILLE_MAX_H <br/>
 Postconditions : vérifie si le déplacement vers la case (x) de tab est un retour en arrière : retourne 0 si c'est le cas, 1 sinon. </p>

</div>
</div>
<a class="anchor" id="a6b9ac7a4a8b64aac310d0dda786775db"></a><!-- doxytag: member="deplacement.h::testRetourLigne" ref="a6b9ac7a4a8b64aac310d0dda786775db" args="(int x, char tab[TAILLE_MAX_L])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="deplacement_8h.html#a6b9ac7a4a8b64aac310d0dda786775db">testRetourLigne</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_L]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX_L <br/>
 Postconditions : vérifie si le déplacement vers la case (x) de tab est un retour en arrière : retourne 0 si c'est le cas, 1 sinon. </p>

</div>
</div>
<a class="anchor" id="ad09ce5178d9f3a194a9109a6fb02520e"></a><!-- doxytag: member="deplacement.h::tunnel" ref="ad09ce5178d9f3a194a9109a6fb02520e" args="(int x, int y, char tab[TAILLE_MAX_H][TAILLE_MAX_L], int i)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="deplacement_8h.html#ad09ce5178d9f3a194a9109a6fb02520e">tunnel</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>tab</em>[TAILLE_MAX_H][TAILLE_MAX_L], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>i</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : 0&lt;=x&lt;TAILLE_MAX, 0&lt;=y&lt;TAILLE_MAX, 0&lt;i&lt;=4 <br/>
 Postconditions : bloque les cases adjacentes à la case (x,y) de tab qui ne correspondent pas à la direction empruntée i. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
